package com.anlogic.sdk.ui.tests.uc6.projectattr;

import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
import org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import com.anlogic.sdk.ui.tests.utils.ProjectAttributeUtils;
import com.anlogic.sdk.ui.tests.utils.WorkspaceUtils;

public class AttrTest {
	private static SWTWorkbenchBot bot;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {

		bot = new SWTWorkbenchBot();
		SWTBotPreferences.TIMEOUT = 10000;
		SWTBotPreferences.KEYBOARD_LAYOUT = "EN_US";
		bot.waitUntil(Conditions.shellIsActive("data - FutureDynasty"), 90 * 1000);
	}

	@Before
	public void setUp() throws Exception {
		WorkspaceUtils.resetworkbench(bot);
	}

	@After
	public void tearDown() throws Exception {
		WorkspaceUtils.cleanWorkspace();
	}

	
	@Test 
	public void Warnings_Warnonuninitializedvariables_Test() throws InterruptedException
	{
	    ProjectAttributeUtils.riscvTestCheckBox(bot,"Warnings", "Warn on uninitialized variables (-Wuninitialised)", "-Wuninit");
	}

	

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

}
